//author:dhclly
const o =console.log;

class Animal {
    public name: string;
    private innerName: string;
    public constructor(theName: string) { this.name = theName;this.innerName="animal:"+this.name; }
    public move(distanceInMeters: number) {
        console.log(`${this.name} moved ${distanceInMeters}m.`);
    }
}

let a = new Animal("Cat");
o(a.name);
// o(a.innerName);